Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix] Fix MultiTableSink restore failed when add new table #5746

Merged
merged 5 commits into from
Nov 3, 2023

Conversation

Hisoka-X
Copy link
Member

Purpose of this pull request

This PR fix MultiTableSink restore failed when add new table in source side.

Does this PR introduce any user-facing change?

no

How was this patch tested?

add new test.

Check list

@Hisoka-X Hisoka-X marked this pull request as draft October 27, 2023 14:52
@Hisoka-X Hisoka-X marked this pull request as ready for review October 30, 2023 10:16
@Hisoka-X Hisoka-X added the bug label Oct 30, 2023
@@ -217,13 +217,13 @@ public SnapshotPhaseState snapshotState(long checkpointId) {
new SnapshotPhaseState(
alreadyProcessedTables,
remainingSplits.isEmpty()
? Collections.emptyList()
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use unmutable list will throw exception when restore with add new table. So I think we should use mutable list for now. cc @hailin0

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good

hailin0
hailin0 previously approved these changes Oct 31, 2023
@@ -217,13 +217,13 @@ public SnapshotPhaseState snapshotState(long checkpointId) {
new SnapshotPhaseState(
alreadyProcessedTables,
remainingSplits.isEmpty()
? Collections.emptyList()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good

@Hisoka-X Hisoka-X added this to the 2.3.4 milestone Nov 2, 2023
Copy link
Member

@ruanwenjun ruanwenjun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ruanwenjun ruanwenjun merged commit 21503bd into apache:dev Nov 3, 2023
@Hisoka-X Hisoka-X deleted the fix-multi-table-restore branch November 3, 2023 02:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants